﻿//////////////////////////////////////////////////////////////////////////
/*
Copyright (c) 2011-2015 Kaiming Yi
	
	Permission is hereby granted, free of charge, to any person obtaining a copy
	of this software and associated documentation files (the "Software"), to deal
	in the Software without restriction, including without limitation the rights
	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
	copies of the Software, and to permit persons to whom the Software is
	furnished to do so, subject to the following conditions:
	
	The above copyright notice and this permission notice shall be included in
	all copies or substantial portions of the Software.
	
	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
	THE SOFTWARE.
	
*/
//////////////////////////////////////////////////////////////////////////



//////////////////////////////////////////////////////////////////////////
//
// Name:   	Prerequisites.h
// Desc:	todo...
// 描述:	
// 
// Author:  Kaiming-Desktop	 
// Date:	01/20/2011	
// 
//////////////////////////////////////////////////////////////////////////
#pragma once

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the GAMEKNIFEUI_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// GAMEKNIFEUI_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.


#include "gkPlatform.h"
#include "vtxPrerequisites.h"

#if VTX_OS == VTX_WIN32
#	ifdef VTX_STATIC_LIB
#		define vtxopExport
#	else
#		ifdef GAMEKNIFEUI_EXPORTS
#			define GAMEKNIFEUI_API __declspec(dllexport)
#		else
#			define GAMEKNIFEUI_API __declspec(dllimport)
#		endif
#	endif
#endif


namespace vtx{
	class gkMovableMovie;
	class gkMovableMovieFactory;
	class gkMovableInstanceBase;
	class gkMovableShape;
	class gkMovableShapeFactory;
	class gkMovableStaticText;
	class gkMovableStaticTextFactory;
	class gkMovableEditText;
	class gkMovableEditTextFactory;
	class GlyphAtlasElement;
	class ShapeAtlasElement;
	class gkVtxTexture;
	class gkVtxTextureFactory;
}

#ifndef VTXCOLOR_TO_D3DXCOLOR
#define VTXCOLOR_TO_D3DXCOLOR(vtxcolor)       D3DXCOLOR(vtxcolor.r, vtxcolor.g, vtxcolor.b, vtxcolor.a)
#endif    

